using UnityEngine;

public class WaterMapManager : MonoBehaviour
{
    public static WaterMapManager instance;

    private void Awake()
    {
        instance=this;
    }
    //设置子物体阻挡
    public void SetStop()
    {
        for(int i=0;i<transform.childCount;i++)
        {
            SceneItemManager.instance.SetStop(transform.GetChild(i));
        }
    }
    //设置子物体可以行走
    public void SetRun()
    {
        for (int i = 0; i<transform.childCount; i++)
        {
            SceneItemManager.instance.SetRun(transform.GetChild(i));
        }
    }
}
